/*
 * Detector.h
 *
 *  Created on: Apr 20, 2010
 *      Author: Soheil Damangir
 */

#ifndef DETECTOR_H_
#define DETECTOR_H_
#include <iostream>
#include "image.h"
#include "../Util/Constants.h"
#include "../Classifier/VotedBinaryClassifier.h"
namespace Group5{

struct DetectionResults{
  bool detected;
  int x, y;
  int w, h;
  int size;
};

class Detector {
public:
  Detector(std::istream&is);
  virtual void detect(kthrobot::Image&image, DetectionResults&results, const char*what);
  virtual ~Detector();
protected:
  VotedBinaryClassifier classifier;
  bool **clr;
  int _min_x, _max_x, _min_y , _max_y;
  Detector();
};
}

#endif /* DETECTOR_H_ */
